import request from '@/utils/request'

const operLog = {

  /**
   *
   * @param query
   */
  listOperLog(query) {
    return request({
      url: 'admin/log-record/page/' + query.pageNum + '/' + query.pageSize,
      method: 'get',
      params: query

    })
  },
  /**
   *
   * @param query
   */
  listOperLogByUser(query) {
    return request({
      url: 'admin/log-record/byUser/' + query.pageNum + '/' + query.pageSize,
      method: 'get',
      params: query

    })
  },

  delOperLog(ids) {
    return request({
      url: 'admin/log-record/remove/'+ ids,
      method: 'delete',

    })
  },
  cleanOperLog() {
    return request({
      url: 'admin/log-record/clean',
      method: 'delete'

    })
  },
  exportOperLog(query) {
    return request({
      url: 'admin/log-record/page/' + query.pageNum + '/' + query.pageSize,
      method: 'get',
      params: query

    })
  },
}
export default operLog
